﻿@model MVCBlog.Models.Post

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>

<div class="blogPost">
    <h1>@Html.DisplayFor(model => model.Title)</h1>
    
    @if (!string.IsNullOrEmpty(Model.Image))
    {
        <div><img src="@Model.Image" class="img-rounded" /></div>
    }

    @Html.Raw(Model.Post1)
    <p>&nbsp;</p>
    <p class="postTagline">Posted by @Html.DisplayFor(model => model.AspNetUser.DisplayName) on @Html.DisplayFor(model => model.PostDate) in Category: @Html.DisplayFor(model => model.Category.Name)</p>

    <p>Last Updated: @Html.DisplayFor(model => model.UpdateDate)</p>
</div>
